
<g:if test="${dataList.size() > 0}">

    <meta charset="utf-8">
    <style type="text/css">
    th{
        width: 9em;
    }
    tr,td{
        border: 1px #ADBFCD solid;
    }
    .odd{
        background-color: #EBEBEB;
    }
    .xl70
    {mso-style-parent:style0;
        mso-number-format:"yyyy/m/d\\ h:mm:ss";
        white-space:normal;
        font-size:10.0pt;
        font-family:Arial Unicode MS;
        mso-font-charset:134;
        border:1.0pt solid #ADBFCD;}
    </style>

    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <h3 class="panel-title" align="center"><i class="fa fa-line-chart fa-fw"></i>
                    机台总和效率OEE
                </h3>
                <th width="70" >每天工作时间（min)</th>
                <th width="50" >负荷工作时间(min)</th>
                <th width="70" >时间运作率</th>
                <th width="70" >性能运转率</th>
                <th width="130" >良品率</th>
                <th width="70" >OEE</th>
            </tr>
            </thead>
        <g:each in="${machine1}" status="i" var="tableInstance" id="a1">
            <tr>
                <td width="100">${tableInstance.DAY_WORK_TIME}</td>
                <td width="70">${tableInstance.LOAD_TIME}</td>
                <td width="70">${tableInstance.AVAILAB_LITY1}</td>
                <td width="70">${tableInstance.PREFORMANCE1}</td>
                <td width="70">${tableInstance.GOOD_NUMBER1}</td>
                <td width="70">${tableInstance.OEE1}</td>
            </tr>
        </g:each>
    <div class="bjui-pageContent" STYLE="margin-top:100px">
        <g:if test="${machine1.size > 0}">
            <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
                <thead>
                <tr style="height: 10px;" align="center">
                    <h3 class="panel-title" align="center"><i class="fa fa-line-chart fa-fw"></i>
                        机台平均故障间隔时间(MTBF)
                    </h3>
                </tr>
                <tr>
                    <th width="70" >运行时间合计（min)</th>
                    <th width="50" >故障频次</th>
                    <th width="70" >MTBF（min)</th>
                </tr>
                </thead>
                <tbody>
                <align="center">
                <g:each in="${machine1}" status="i" var="tableInstance" id="a1">
                    <td >${tableInstance.RUN_TIME}</td>
                    <td >
                        <a href="${request.getContextPath()}/Machine1/machine?startTime=<%=params.startTime%>
            &endTime=<%=params.endTime%>" data-toggle="navtab" data-id="dialog-normal"
                           data-options="{id:'machine', title:'OEE/MTBF/MTTR'}">${tableInstance.FREQUENCY}</a></td>
                    <td >${tableInstance.MTBF}</td>
                </g:each>
                </tr>
                </tbody>
            </table>
        </g:if>
        <g:else>
            <g:render template="../template/emptyPanel"/>
        </g:else>
    </div>


    <div class="bjui-pageContent" STYLE="margin-top:200px">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr style="height: 10px;" align="center">
                <h3 class="panel-title" align="center"><i class="fa fa-line-chart fa-fw"></i>
                    机台平均维修时间(MTTR)
                </h3>
            </tr>
            <tr>
                <th width="70" >故障停机时间合计（min)</th>
                <th width="50" >故障频次</th>
                <th width="70" >MTTR (min)</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${machine1}" status="i" var="tableInstance" id="a1">
                <tr>
                    <td width="100">${tableInstance.STOP_TIME_MIN1}</td>
                    <td >
                        <a href="${request.getContextPath()}/Machine1/machine?startTime=<%=params.startTime%>
            &endTime=<%=params.endTime%>" data-toggle="navtab" data-id="dialog-normal"
                           data-options="{id:'machine', title:'OEE/MTBF/MTTR'}">${tableInstance.FREQUENCY}</a></td>
                    <td width="70">${tableInstance.MTTR}</td>
                </tr>
            </g:each>
   </table>
 </div>
  </g:if>